package world.xuewei;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 应用程序启动类
 *
 * @author XUEW
 */
@SpringBootApplication
@MapperScan(basePackages = {"world.xuewei.mapper"})
public class KakaShopApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(KakaShopApplication.class);
    }
    public static void main(String[] args) {
        SpringApplication.run(KakaShopApplication.class, args);
    }

}